/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.CTPhieuDatTiec_DAO;
import DTO.CTPhieuDatTiec_DTO;

/**
 *
 * @author PEKEM
 */
public class CTPhieuDatTiec_BUS {

    public static int Insert(CTPhieuDatTiec_DTO ct) throws Exception {
        return CTPhieuDatTiec_DAO.Insert(ct);
    }

    public static int Delete(String maCTPhieuDatTiec) throws Exception {
        return CTPhieuDatTiec_DAO.Delete(maCTPhieuDatTiec);
    }

    public static int Update(CTPhieuDatTiec_DTO ct) throws Exception {
        return CTPhieuDatTiec_DAO.Update(ct);
    }

    public static String layMaCuoiCung() throws Exception {
        return CTPhieuDatTiec_DAO.layMaCuoiCung();
    }

    public static String taoMaTuDong(String maGoc, int batDau) throws Exception {
        return CTPhieuDatTiec_DAO.taoMaTuDong(maGoc, batDau);
    }
}
